Fix for Python version "2.7" (#3749)