https://github.com/dimagi/commcare-export/blob/master/commcare_export/misc.py#L6