Update modules reviewed by Monzur.

Update keys.py and pycrypto_keys.py following Monzur's code review.
Update affected modules.