Fixed circular import problem
Reordered methods and add append for Python