Removed unused only_dirty var
Made python_loops example executable.