Remove resource function in uc python
When the script is aborted earlier, remove the resources with the atexit
handler in python.
Further add flags for deleting resources before execution or only delete resources with this script.
Edited by Björn Vonheiden