Telescope control code written in python and C++