[smart_open](https://github.com/RaRe-Technologies/smart_open) seems interesting and relevent. Maybe we can use it or hook to it.