this is python code of work