def formToDict(form, exclude=()):
    """ Returns a dictionary from the given form/ProtoRPC Message """
    return {field.name: getattr(form, field.name) for field in form.all_fields() if field.name not in exclude}