Controlling Tally using Python

Hi People, Is there an ability to control tally using python other than requestion data from tally and writing ledgers? I want to change companies in tally automatically using python