demo code for python study