Python3 support

Hi! I was trying to use your library on Python 3.3.X, so I added support for Python3.  Then I realised that the parse command was written in python2.x.  Anyway, I think that this might help for the future.