def getProcess(): psutil = getPSUtil() if psutil: import os return psutil.Process( os.getpid() ) return None