python is confusing me