<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def module_to_dict(module, omittable=lambda k: k.startswith('_')):
 """ Converts a module namespace to a Python dictionary. Used by get_settings_diff. """

    return dict([(k, repr(v)) for k, v in module.__dict__.items() if not omittable(k)])