def get_local_session(env={'LC_ALL': 'C'}, pty=False, shared=None):
    """A shortcut to get a local session"""
    from reproman.resource.shell import Shell
    session = Shell('localshell').get_session(pty=pty, shared=shared)
    if env:
        session.set_envvar(env)
    return session
