Decorator mode implement by python