a few pieces of sorce code of work with python