try alt import
@@ -3,4 +3,5 @@ import os
os.environ["PYNPUT_BACKEND_KEYBOARD"] = "dummy"
os.environ["PYNPUT_BACKEND"] = "dummy"
os.environ["DISPLAY"] = ":0"
-import pynput
\ No newline at end of file
+import pynput.mouse
+import pynput.keyboard
\ No newline at end of file
