clean up formatting and other linting issues

Conflicts:
	test/ext/test_associationproxy.py
correct for missing fail() methods which were lost when we removed unittest.TestCase