In order to properly get pids etc. we need to pass bytes to MD5 and SHA1 instead of unicode strings. Also ord() is no longer needed since data is bytes value gets int and we need chr() to get characters from the mapping bytearrays.
To fix error with python3 when launching help link open files in binary mode.
Fixes export of Kindle keys in calibre 5.0.1 here.