Instead of using a separate styles.css file, have you tried using InlineStyleSheet from within your python code?
InlineStyleSheet
See the docs:
Maybe this helps, too: