pull docker image using python