Thanks to @JohnKap the response times in the gateway plugin (3.7) now work. The fix would most likely work witht he 2.7 script as well, but I don't have time to test at the moment.
Luckily this person knows more python than me: https://gist.github.com/fastjack/a0feb792a9655da7aa3e2a7a1d9f812f