Fixed python3 tests
Restructured tests
Fixed test imports
Formatted constants
Started deep copying list constant for rewrite