if door_open:
enter()

else: #door closed
knock()

if permission_granted:
enter()

elif unresponsive:
knock_aggressively()
if permission_granted:
enter()

elif unresponsive:
text_or_call_cellphone()
if permission_granted:
enter()

else:
do_nothing() #I'm not home, bro.




if door_open:
enter()

else: #door closed
knock()

if permission_granted:
enter()

else:
while not permission_granted:
options = ['knock aggressively', 'yell', 'text', 'call']
print('try this: ' + random.choice(options) + '!')