[#62657522] [#62820502]

[#62657522] changes done such that memory leak possibility is removed.
[#62820502] pylint for the whole tethne project. just some are
remaining.