[Python-Dev] Confusing "hasattr" behaviour