I used swagger codegen plugin with gradle for generating API client libraries from the json. For Gradle I followed the steps from here and it worked perfectly fine. For Pyth