lab6 book work python scripts