rationalization of the selection code

merged three dicts and one list in one dict when declaring variables.
ignore __init__.py files by default