some simple program implementation by python