Clean up patches for issues fixed in 1.0.5.

Fix release.py to work in Python 2 or 3.