Add import exception for docker-py