basic flake8 to increase readability
bugfix, check for fake_client_ip in a more defensive way