Added python version payment api sample code