The magic port was meant as a warmup, the idea was porting pycurl.
It is done, and works for me.
You can grab the diff here or from pycurl patch tracker.
New version, which workarounds the bug mentioned.
cvs -d:pserver:firstname.lastname@example.org:/cvsroot/pycurl login
cvs -z3 -d:pserver:email@example.com:/cvsroot/pycurl co -P pycurl
wget -O /dev/stdout http://p.carnivore.it/wtnYp3?download | patch -p0
/opt/dionaea/bin/python3 setup.py install
I ported the binding, the setup.py and 2 examples, the share interface is untested.