bin-directory optional, also some pep8