Adding python sanity checks to CI & fixing goofs