Removed casa5-related code from tasks and helper files. Removed the code that relied on
the is_CASA6 and is_python3 variables.
In some files, I renamed the vars variable to local_vars to avoid issues with a builtin variable
in the write history block of code.