deleted a line i wasn't using that was screwing up 'w' in python code