Fixed issue in Python agent in a Kubernetes + Docker setup