Python Square Function Math Def