BUG: basetemplates.py is too old to use. Commment some broken codes