type-safe swagger client for python