I know someone who just gets branches cut to the width of the tub, and just puts screws through the branch into the tub from the cut sides. (Obviously melting holes into the tub first)
You can also look up DIY green tree python tub, and there are more ideas on how they secure perches/branches.