Use one getattr() call instead of hasattr() + dot-lookup (faster)
Merge pull request #1 from defnull/patch-1

Use one getattr() call instead of hasattr() + dot-lookup (faster)