'Helper function for getting of flags. Returns all flags in
dictionary format: { "flag name": "flag value" ... }'

def _get_flags(self):

    flags = {}
    for f in self._flags:
        if (not (self[f] == '')):
            flags[f] = self[f]
    return flags
