#!/usr/bin/python3

import pyatspi

def listener(e):
    if e.host_application.name != "gnome-shell":
        return

    print(e)

pyatspi.Registry.registerEventListener(listener, "object:text-changed:insert")
pyatspi.Registry.start()
