Fix #7 hasattr implementation for python3
Merge pull request #12 from Toilal/hasattr_python3

Fix #7 hasattr implementation for python3