Python generator & licence