If docker-py is available, it could potentially simplify docker interaction from the module. https://github.com/docker/docker-py