Python Perfect Square Calculator