started writing this as a replacement for netapi_sanitize.py since the data model has changed.  This should be a bit more simplified now.