Most of it has content from stackoverflow question.
import file
>>> import some_module >>> type(some_module) <type 'module'> >>> import some_package >>> type(some_package) <type 'module'>