blender plugin: refactoring

 - move CGRU env variables checks before doing anything
 - less broad exception clause
 - using .format for command line and other string concatenation
 - set block.setFiles correctly
 - rename variables names
 - remove some unused fonction and variables
 - reformating code (pep 8 but without tabs as spaces :)