def notify(msg, msg_type=0, duration_time=None):
    """Show system notification with duration t (ms)"""
    msg = msg.replace('"', '\\"')
    if platform.system() == "Darwin":
        command = notify_command_osx(msg, msg_type, duration_time)
    else:
        command = notify_command_linux(msg, duration_time)

    try:
        subprocess.call(command)
        return True
    except OSError:
        return False
Show system notification with duration t (ms)
NEMbox/utils.py