named arguments handling, and more pep8