def main_page(self): import Search #add to the user the bleats he follows for listening in self.listens: following = Search.search_user_by_ID_e(listening) for bleats in following.bleats: self.add_bleats(bleats) #add to the user the bleats mentioning him bleat_list = Search.search_bleat_by_content("@"+self.username) for bleat in bleat_list: self.add_bleats(bleat)