def add_permalink_methods(content_inst):
 for permalink_method in PERMALINK_METHODS:
  setattr(content_inst, permalink_method.__name__, permalink_method.__get__(content_inst, content_inst.__class__))

def add_permalink_methods ( content_inst ) : for permalink_method in PERMALINK_METHODS : setattr ( content_inst , permalink_method . __name__ , permalink_method . __get__ ( content_inst , content_inst . __class__ ) )
add permalink methods to object .