handles foreach statements better, changed print statements to sys.stdout.write statements, passes all tests except cookie(with the stdin stuff)
added chomp translation, added STDIN translation change eq in string comparison