def pt_fingerprint(query):
if not have_program('<STR_LIT>'):  <EOL><INDENT>raise OSError("<STR_LIT>")<EOL><DEDENT>thread = PTFingerprintThread.get_thread()<EOL>thread.in_queue.put(query)<EOL>return thread.out_queue.get()<EOL>
Takes a query (in a string) and returns its 'fingerprint'