This refactors the problem extraction and allows CSS to be applied properly to problem xblock. I also aimed for having hint fetching working with this, but it seems that it's a larger problem and thus, this only has the problem xblock extractor refactored in the following ways -
The long download() function is broken down into download() and get_answers()
While the scraping logic remains the same, proper comments are now added and better variable names are used. Also unfinished hint extraction comments are removed.
The problem template is refactored to now allow proper loading of the CSS styles by having a structure similar to the online version
This refactors the problem extraction and allows CSS to be applied properly to problem xblock. I also aimed for having hint fetching working with this, but it seems that it's a larger problem and thus, this only has the problem xblock extractor refactored in the following ways -