Adding support for other Python versions (was previously only valid for 2.7) [ci skip]