Fix setup.py to use 2to3.
Use py3k compatible sha import.