python test rep