How To Check For Perfect Square In Python