Add version_number() function to python