Fix some more issue with python3 (3.3) and M2Crypto

Hi, I've made quite some fixes to M2Crypto code and testsuite. It is not very polished regarding conventions, where to use str or bytes, but that can be done afterward. I would say that most of low hanging fruits are now fixed and all remaining open issues would expects much more effort. So I have documented them in TODO file