add header_append function to python object