You need to add the following to the bottom. ( taken from the example scripts ) you also need to exit the script in the right way to show that it completed successfully.

coordinates = open('/tmp/indi-status', 'w')
coordinates.truncate()
coordinates.write('0 0 0')
coordinates.close()
print("Fully Open")
sys.exit(0)

Read More...