Adding python functionalities