A self code write in python for diferent purposes