docker: docker.py wrap StringIO import for python3