Here is a new version with a completely rewritten (and this time actually working) version of this script. It includes a FRED interface and the ability to configure a few things using configuration files. The link in the first post has been updated to point to the latest version.
The package contains the script files, a demo mission (requires Blue Planet 2) and an example configuration file, for more information about how to use them please take a look at the PDF file in the data/docs/TCS directory.
If you have been using this script before then you may have to update your missions as some functions have been removed and replaced by corresponding configuration options.