Python 3 support added for country type