Pollard's Rho in Python