Check If A Number Is A Perfect Square Python