Handle entities in SRT.

Also, PEP8 please.