Various fixes in 24 plugins

I fixed various type of error in the plugins code (some only cosmetics):
* Unimported modules
* Undefined variables
* Bad variable name
* Unused variables
* Bad indentation