1. Python 2 vs 3 hasattr() behaviour