Added a base class for python script