define codes for the names of countries as a enum it supports python2.7, 3.3 with enum34 of course support python3.4 as well.
>>> from iso3166 import Country >>> Country.kr <Country.kr> >>> Country.kr.alpha2 KR >>> Country.kr.alpha3 KOR >>> Country.kr.numeric 410 >>> Country.kr.english_short_name Korea (Republic of)
Written by Kang Hyojun. Distributed under Public Domain.