Command line interface for modifying text lines using python