python Dockerfile tweak to try to maintain backward compatibility