refactoring
PyCrypto compatible method
use PyCrypto if it installed