various fixes to pycrypto -> cryptography change. to bi fixed