def prompt_2fa(self):
code = '<STR_LIT>'<EOL>while not code:<EOL><INDENT>code = input('<STR_LIT>')<EOL><DEDENT>return code<EOL>
Taken from
http://github3py.readthedocs.io/en/master/examples/two_factor_auth.html
Prompts a user for their 2FA code and returns it.