Add templates folder and fixes some python header