old_contents: import os, subprocess, signal, psutil
  
  class SLController(object):
      def __init__(self):
          self.lockerProc = None
          self.appname = "screenlockApp.exe"
  
      def is_running(self):
          for p in psutil.process_iter():
              try:
                  if p.name == self.appname:
                      return True
              except psutil.Error:
                  pass
          return False
  
      def lock_screen(self):
          self.lockerProc = subprocess.Popen(["python", "screenlockApp.py"],  creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)
          #self.lockerProc = subprocess.Popen(["screenlockApp.exe"],  creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)
  
      def unlock_screen(self):
          os.kill(self.lockerProc.pid, signal.CTRL_BREAK_EVENT)
  
  
new_contents: import os, subprocess, signal, psutil
  
  class SLController(object):
      def __init__(self):
          self.lockerProc = None
          self.appname = "screenlockApp.exe"
  
      def is_running(self):
          for p in psutil.process_iter():
              try:
                  if p.name == self.appname:
                      return True
              except psutil.Error:
                  pass
          return False
  
      def lock_screen(self):
          #self.lockerProc = subprocess.Popen(["python", "screenlockApp.py"],  creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)
          self.lockerProc = subprocess.Popen(["screenlockApp.exe"],  creationflags=subprocess.CREATE_NEW_PROCESS_GROUP)
  
      def unlock_screen(self):
          os.kill(self.lockerProc.pid, signal.CTRL_BREAK_EVENT)
  
  
subject: remove debugging stuff