adder a python code

just added a python patch