Added robust pyimport
Refractoring for translator & external import support