This JIRA is loosely related with
SPARK-21573. Python 2.6 could be used in Jenkins given the past cases and investigations up to my knowledge and it looks failing to execute some other scripts.
In this particular case, it was:
Since we dropped the Python 2.6.x support, looks better we remove those workarounds and print out explicit error messages in order to duplicate the efforts to find out the root causes for such cases.