Add common.py as lib to define useful constants and functions.