Clean up after test_nested.py is run with python 3

Third follow up for #41.