python file imports code example
Example 1: import different module based on python version
try:
import simplejson as json
except ImportError:
import json
Example 2: python reference parent module
from .some_module import some_class
from ..some_package import some_function
from . import some_class