Fixed python tests. With a machete.