import sys
from uiplib.scheduler import scheduler

if __name__ == "__main__":
    print("Hey this is UIP! you can use it to download"
          " images from reddit and also to schedule the setting of these"
          " images as your desktop wallpaper.")
    try:
        offline = False
        if len(sys.argv) != 0 and str(sys.argv[1]) == '--offline':
            print("You have choosen to run UIP in offline mode.")
            offline = True
        else:
            print("UIP will now connect to internet and download images"
                  " from reddit.")
        scheduler(offline)
    except KeyboardInterrupt:
        sys.exit(0)

@@ -3,16 +3,17 @@
 port sys
+%0D
 %0Afrom ui
@@ -43,17 +43,19 @@
 cheduler
-%0A
+%0D%0A%0D
 %0Aif __na
@@ -73,16 +73,17 @@
 main__%22:
+%0D
 %0A    pri
@@ -130,16 +130,17 @@
 ownload%22
+%0D
 %0A       
@@ -205,16 +205,17 @@
 f these%22
+%0D
 %0A       
@@ -254,16 +254,17 @@
 paper.%22)
+%0D
 %0A    try
@@ -264,16 +264,17 @@
     try:
+%0D
 %0A       
@@ -289,16 +289,17 @@
  = False
+%0D
 %0A       
@@ -320,12 +320,11 @@
 gv) 
-!= 0
+%3E 1
  and
@@ -356,16 +356,17 @@
 ffline':
+%0D
 %0A       
@@ -423,16 +423,17 @@
  mode.%22)
+%0D
 %0A       
@@ -451,16 +451,17 @@
 e = True
+%0D
 %0A       
@@ -466,16 +466,17 @@
    else:
+%0D
 %0A       
@@ -540,16 +540,17 @@
  images%22
+%0D
 %0A       
@@ -576,16 +576,17 @@
 eddit.%22)
+%0D
 %0A       
@@ -604,16 +604,17 @@
 offline)
+%0D
 %0A    exc
@@ -635,16 +635,17 @@
 terrupt:
+%0D
 %0A       
@@ -656,9 +656,10 @@
 .exit(0)
+%0D
 %0A

correct Offline mode