import os
import cPickle as pickle
import logging

logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)


def update_pickle(new_cache):
    logger.debug('Updated pickle')
    pickle.dump(new_cache, open('cache.pkl', 'wb'))


def check_pickle():
    logger.debug('Checking in pickle')
    if not os.path.isfile('cache.pkl'):
        malicious_url = {}
        pickle.dump(malicious_url, open('cache.pkl', 'wb'))

    cache = pickle.load(open('cache.pkl', 'rb'))
    return cache

@@ -32,102 +32,8 @@
 kle%0A
-import logging%0A%0Alogging.basicConfig(level=logging.DEBUG)%0Alogger = logging.getLogger(__name__)%0A
 %0A%0Ade
@@ -64,28 +64,21 @@
 e):%0A    
-logger.debug
+print
 ('Update
@@ -170,20 +170,13 @@
     
-logger.debug
+print
 ('Ch

Remove logging module