Refactoring packages of python example/tutorial projects