Python tests not updating DB