cleanup unused functions for simple version. Removed dependency on pycrypto