<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_none(obj):
 """Filters out attributes set to None prior to serialization, and returns a new object without those attributes. This saves the serializer from sending empty bytes over the network. This method also fixes the keys to look as expected by ignoring a leading '_' if it is present. :param obj: the dictionary representation of an object that may have None attributes :type obj: dict """

        result = {}
        for k, v in obj.iteritems():
            if v is not None:
                if k.startswith('_'):
                    k = k[1:]
                result[k] = v
        return result