print(len(out))
tpp = lief.tprt_bin[:offset]+out+lief.tprt_bin[offset+len(tptext_section):]
with open("tpp.so", 'wb') as fp:
    fp.write(tpp)

Traceback (most recent call last):
  File "/Users/egorkin1558/PycharmProjects/lief/dec.py", line 17, in <module>
    tpp = lief.tprt_bin[:offset]+out+lief.tprt_bin[offset+len(tptext_section):]
AttributeError: module 'lief' has no attribute 'tprt_bin' There should be exactly 2 paragraphs separated by the markdown divider: ***.
user