Added python3 support

I've tested the code with python2 and python3, and it seems to work (with my bank account). Oh, and I also had a PEP8-attack and converted all of your beautiful tabs to spaces.... if you want me to undo that, write a comment...