A set of python primality tests