Trying to install pycrypto > 2.2 and hit this bug[1]. Here is the fix:
1. Go here and install the latest version following these instructions: