Allow BeautifulSoup document, in addition to a file handle or
string, in the mf2py.Parser constructor