Implementation of Python Codes