Instantiate and return the site. This will be used for all commands

def make_site_obj(argdict):
    '''Instantiate and return the site. This will be used for all commands'''
    #d = '.'
    d = None
    if 'dirname' in argdict:
        d = argdict['dirname']
    try:
        s = s2site.Site(d)
    except Exception : # pragma: no cover
        print "Could not instantiate site object."
        sys.exit()
    return s