Automatically displaying new channels


I'm writing a python script to be used in an extension that will have the result of creating a number of new channels. What I have written as a test so far is able to create the new channels and put the calculated information in it, but I am unable to have them display automatically. Someone has already asked a very similar question with a solution. However, their solution using load_chan() requires the database to be closed while the script I wrote requires the database to be open. load_chan() also makes the database read only until it is reopened. Is there an other way to get the channels to display automatically while avoiding those two problems? 

Thank you

Related question: