Fixed failing Dynamo Python test cases