def check_dir_exists(dirname='./pickles'):
    'Check if given dirname exists This will contain all the pickle files.'
    if (not os.path.exists(dirname)):
        print('Directory to store pickes does not exist. Creating one now: ./pickles')
        os.mkdir(dirname)
Check if given dirname exists This will contain all the pickle files.
def check_dir_exists(dirname='./pickles'):
    
    if (not os.path.exists(dirname)):
        print('Directory to store pickes does not exist. Creating one now: ./pickles')
        os.mkdir(dirname)