pep8
split too complex function