Decode entities before Python parsing