Python source code study and demo