Partial JSON API implementation in Python