Improve tvtk import 

This fix checks the import of tvtk and configures it for headless operation.

And some PEP8 formatting fixes
Mmm, I'm not very sure about the type of exception that could be catched here, or you refer to the import of ETSConfig?