That function reads a string of python code and immediately executes it. This required passphrases to be input as python literals, we can just use a string as passphrase instead.
Due to commit 31ce761469 'else' block belongs to different if statement.
31ce761469
Not meant for anything serious but shows how to use the agent interface.