python file parser working