simplify and add comments to py-scripts