def __setattr__(self, key, value):
        keys = {
            'collection', 'schema', 'allow_unknown', '_document', '_errors'
        }

        if key in keys:
            object.__setattr__(self, key, value)
        else:
            self._document[key] = value
Store file locally from download URL
dataset/ETHPy150Open lvieirajr/mongorest/mongorest/collection.py/Collection.__setattr__--crossover with--dataset/ETHPy150Open jncraton/PythonDropboxUploader/dbupload/dbconn.py/DropboxConnection.download_file_from_url