Modify the drawatms and bonds2cylinder modules

The two modules has been modified by fixing several apparent bugs
captured by pylint. Also the wrapping of string inside dictionaries for
mustache rendering has been deleted, since it has been found that the
content can be got by a variable name dot.