import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
cb = Gtk.Clipboard.get(Gdk.SELECTION_PRIMARY)
print(cb)
<Gtk.Clipboard object at 0x7ff6031c1d38 (GtkClipboard at 0x27541b0)>
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_PRIMARY)
original = clipboard.wait_for_text()
print(original)