import praw
import configparser

SAVEFILE = "oauth.ini"
def read_ini():
    cfg = configparser.ConfigParser()
    cfg.read(SAVEFILE)
    return cfg

def get_refreshable_instance():
    cfg = read_ini()
    reddit = praw.Reddit(client_id=cfg['app']['client_id'],
                         client_secret=cfg['app']['client_secret'],
                         refresh_token=cfg['token']['refresh_token'],
                         user_agent=cfg['app']['user_agent'])
    return reddit
add gobOauth.py