Moved templates in separate module and updated printer to work with Python 2.7.