Added self parameter to mbedToolchain::__exit__() method

Removed unused modules' imports

Few minor indent issues fixed