add python extending example by c