Moved ip to country conversion from pymysql_utils to here.