I'm confused... What is open source? The NexDome control software and driver?

Also the script you show appears to depend on AtPark working properly so I am confused on that as well.

Well if you have what you need that is most of it.