import six


def dict_to_string_list(d):
    """
    Converts a dict to a list of 'key=value' strings. If the input is None
    then None will be returned.
    """
    return ['%s=%s' % kv for kv in six.iteritems(d)] if d else None