Software version parsing/manipulation in Python