def prev_in_sequence(self, sequence_name): sequence = Wiki().sequences_for_article_url( self.url).get(sequence_name) return sequence['prev'] if sequence else None
def get_sequence_names(self): """Returns the names of the sequences""" return Wiki().sequences_for_article_url(self.url).keys()