Well, at least as long ago as 26 years this observation was published.
Sexual size dimorphism and natural history traits are correlated with intersexual dietary divergence in royal pythons (python regius) from the rainforests of southeastern Nigeria
This research found arboreality only in royal pythons less than 1 meter in length. I'd be curious to see more up to date research if you have citations.