Remove M2Crypto and replace with cryptography module