M2Crypto started supporting python3 from version 0.28 https://gitlab.com/m2crypto/m2crypto/blob/master/CHANGES we need to make sure that we use the correct version of m2crypto
when working on 1306659, fixed that bug as well. *** This bug has been marked as a duplicate of bug 1306659 ***