from math import sqrt

def is_square(n):
    return sqrt(n).is_integer()

print is_square(2**60+1)  # Not actually square