def srstrip(st, subst, require=False):
    """ Strip a substring `subst` from the left of `st` """
    if st.endswith(subst):
        return st[:len(subst)]
    if require:
        raise ValueError('st does not end with subst', st, subst)
    return st
