Fix styles
Fill X-GM-THRID
Reorganize imports and jinja filters