Scripts drawn from Violent Python cookbook