python code from the pipeline

i followed and tried the things stated in that article and still i am not able to do that.

is there anything that i am doing wrong or anything extra that i should do that you suggest.