def can_talk_to_agent():
if (_has_win32all or _has_ctypes) and _get_pageant_window_object():<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Check to see if there is a "Pageant" agent we can talk to.

This checks both if we have the required libraries (win32all or ctypes)
and if there is a Pageant currently running.