Remove dependency on pycrypto and use SystemRandom instead thanks to @dmglab