def import_aes(module_name):
 return __import__(module_name, fromlist=[module_name.split('.')[(-1)]])

def import_aes ( module_name ) : return __import__ ( module_name , fromlist = [ module_name . split ( '.' ) [ ( - 1 ) ] ] )
tries to import the aes module from pycrypto .