I am getting error while trying to parse my api request through custom python plugin. Here is the log trace:

15:11:59 ubuntu.gluu.info tyk-python[13035]: 2018/05/17 15:11:59 http: panic serving [::1]:36844: runtime error: invalid memory address or nil pointer dereference
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: goroutine 11335 [running]:
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: net/http.(*conn).serve.func1(0xc4203921e0)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /usr/local/go/src/net/http/server.go:1697 +0xd0
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: panic(0xd6a1e0, 0x16ac600)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /usr/local/go/src/runtime/panic.go:491 +0x283
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: main.(*CoProcessor).Dispatch(0xc420048908, 0xc420871ec0, 0xc420871ec0, 0x2, 0xc42060a2c8)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /src/github.com/TykTechnologies/tyk/coprocess_native.go:49 +0xdc
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: main.(*CoProcessMiddleware).ProcessRequest(0xc420871040, 0x16e1e60, 0xc4204a07e0, 0xc420a7ab00, 0x0, 0x0, 0x1c, 0x7f5b9ae10038, 0x0)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /src/github.com/TykTechnologies/tyk/coprocess.go:263 +0x26e
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: main.createMiddleware.func1.1(0x16e1e60, 0xc4204a07e0, 0xc420a7ab00)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /src/github.com/TykTechnologies/tyk/middleware.go:84 +0x5a3
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: net/http.HandlerFunc.ServeHTTP(0xc420871500, 0x16e1e60, 0xc4204a07e0, 0xc420a7ab00)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /usr/local/go/src/net/http/server.go:1918 +0x44
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux.(*Router).ServeHTTP(0xc4208efc80, 0x16e1e60, 0xc4204a07e0, 0xc420a7ab00)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /src/github.com/TykTechnologies/tyk/vendor/github.com/gorilla/mux/mux.go:150 +0xed
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: main.mainHandler.ServeHTTP(0x16e1e60, 0xc4204a07e0, 0xc420549800)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /src/github.com/TykTechnologies/tyk/main.go:1161 +0x73
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: main.(*mainHandler).ServeHTTP(0x17c3220, 0x16e1e60, 0xc4204a07e0, 0xc420549800)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: :1 +0x52
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: net/http.serverHandler.ServeHTTP(0xc4204840d0, 0x16e1e60, 0xc4204a07e0, 0xc420549800)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /usr/local/go/src/net/http/server.go:2619 +0xb4
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: net/http.(*conn).serve(0xc4203921e0, 0x16e2e20, 0xc420990dc0)
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /usr/local/go/src/net/http/server.go:1801 +0x71d
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: created by net/http.(*Server).Serve
مٓی 17 15:11:59 ubuntu.gluu.info tyk-python[13035]: /usr/local/go/src/net/http/server.go:2720 +0x288