def _get_indivo_version(smart_version): for k,v in SMART_COMPATIBILITY.iteritems(): if v == smart_version: return k return None