A generic format conversion Web API in Pyramid