Small nit, I know test_redirects needs additional work but can you fix the pep8 zings on the lines your worked on?

tests/test_redirects.py:144:1: W293 blank line contains whitespace
tests/test_redirects.py:146:1: W293 blank line contains whitespace
tests/test_redirects.py:149:1: W293 blank line contains whitespace
tests/test_redirects.py:151:13: E128 continuation line under-indented for visual indent
tests/test_redirects.py:152:1: W391 blank line at end of file
tests/test_redirects.py:152:1: W293 blank line contains whitespace