Python 2 and 3 support

I updated the core library to be compatible with Python 3.3 and up. (<3.3 does not work.) It should work on Python 2 simultaneously but you'll have to test yourself.

The examples are not updated.

Also, the pandoc requirement in setup.py caused a little trouble here, you might want to review that :)