96kmp3 fix, python3 port, general cleanup and optimisation

ohai

i ported the script to py3 and fixed a couple o'things.

kthxbai