ran 2to3.py with manual checking of the results
re-indented to spaces
fixed indent problem
fixed division bugs
don't die if checksum cannot be found (in hexchat 2.9.6.1, the filename hexchat loads is '<script>')
pycrypto for windows is available here: http://www.voidspace.org.uk/python/modules.shtml#pycrypto