Update Python tests for fix for bug #383