Fixed #23411 -- Updated minimal Python version to 2.7

Thanks Björn Andersson for the report.