I would question the wisdom of designing an API that can return either a sequence or None. If it normally returns a sequence, and there are no items to return, it should return an empty sequence.
-- Greg -- https://mail.python.org/mailman/listinfo/python-list