writing code

encoding and decoding support for p3k

Python3 support

more code changes

updated travis.yml