update and shorten Python version compatibility