basic results parsing script in python