I think all of your doctest examples need an import statement first:

    from bipy.core.sequence import BiologicalSequence