Attribute Vs Function In Python