pyspartn