<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_messages(domain, msg):
 """Debugging function to print all message language variants"""


    domain = Domain(domain)
    for lang in all_languages():
        print(lang, ':', domain.get(lang, msg))