#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import psutil


def get_cpu_load():
    load = psutil.cpu_percent(interval=1)
    return "%s%%" % load


def get_memory_percent():
    mem = psutil.virtual_memory()
    return "%s%%" % mem.percent


def main():
    try:
        print(" %5s %4s" % (get_cpu_load(), get_memory_percent()))
    except:
        sys.exit(
            "psutil not found please install with pip install psutil")

if __name__ == '__main__':
    main()

@@ -96,14 +96,14 @@
     
-load =
+return
  psu
@@ -134,35 +134,10 @@
 =1)%0A
-    return %22%25s%25%25%22 %25 load
 %0A%0A
-%0A
 def 
@@ -143,27 +143,21 @@
  get_mem
-ory_percent
+_load
 ():%0A    
@@ -200,17 +200,8 @@
 turn
- %22%25s%25%25%22 %25
  mem
@@ -256,12 +256,16 @@
  %255s
+%25%25
  %254s
+%25%25
 %22 %25 
@@ -292,19 +292,13 @@
 _mem
-ory_percent
+_load
 ()))
@@ -331,21 +331,8 @@
 xit(
-%0A            
 %22psu
@@ -344,16 +344,17 @@
 ot found
+,
  please 
@@ -365,13 +365,12 @@
 all 
-w
 it
-h
  
+(
 pip 
@@ -383,16 +383,17 @@
 l psutil
+)
 %22)%0A%0Aif _

make script python3