Remove import *
Use isinstance for type comparison
Remove unused variable
Correct AttributeError in upload command on Python 2.4. Fixes #76