Fixed failing Dynamo Python test cases
Merge pull request #1182 from Benglin/UnitTestFixes

This request fixes a number of unit test failures