Detect python code and generate HTML view.