small refactor in http-keyword/__init__.py

Could not stand to refactor this