Adapt the python port to support python 3

Pretty straightforward; i did some optimizations in the `pkcs7` module (unneeded conversions from int to string and back to int again).

The `six` dependency is of course not really required, but this code is only an example implementation to be adapted and copy-pasted in another project, so not really a problem.

Arthur