Python has dict.get method, faster and safer than this enum