Ported to python3.3

This actually meant to

 - use new capsule interface, available also on Py2.7
 - use new unicode API instead of String in 3.3

*ATTENTION* I'm not 100% positive about the PyLong_AsLong,
but it seems to work.
upped version