Python script now parsing correct values