btn class in template vs in python