For doing 1:1 character replacements, maketrans plus translate makes for clean code. You list all the characters you are replacing in one string, all the replacements in the second, and all the characters to delete in the third argument to maketrans.
Damn, I never knew about this. Now I can finally replace my for c in (...): s = s.replace(c, "") loops. My code may finally look acceptable.
Of course, if you are seeing the same issues with a proper desktop browser, then the problem is more likely that the css is not actually being served... Developer mode in chrome etc would let you figure out if the css is actually getting served properly. A common problem in pythonista is dealing with paths correctly.
@Steven11, on MacBook, would recommend PyCharm. Community edition is free, and the ease of navigating in the code is just something you cannot live without once you get used to it. Can be a bit heavy on the machine, though.