Enhance setup script to work with earlier Python 3 versions