Hypothesis confirmed. I tried `print type(ch_type)` immediately after the parsing and it says string. Yes, that's a solution. I'll try that!