Identify Python major version and alias depricated types where required