Or you could generate the emoji symbol for the flag you want to display:
country_code = 'AU'
c1, c2 = map(lambda x: ord(x) + 0x1f1a5, country_code)
flag = chr(c1) + chr(c2)