Refactoring and pep8 on network wizard and utils