<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clean(matrix):
 """Return a copy of given matrix where keys associated to space values are discarded"""

    return defaultdict(lambda: ' ', {
        k: v for k, v in matrix.items() if v != ' '
    })