Helping pycharm's static code analyzer a little bit
Reproducing issue https://github.com/andresriancho/w3af-module/issues/5
Better tests and bugfix for https://github.com/andresriancho/w3af-module/issues/5