added pycrypto import and made key private