update formatting tests for py3