Improve test functions for PEP 8 and Tools 2 through test_key_string