Create constructor.py

To use the constructor in the class function and the python code