<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filter_opt(opt):
 """Remove ``None`` values from a dictionary."""

    return {k: GLib.Variant(*v) for k, v in opt.items() if v[1] is not None}