Generates python files that match a given regex.