Refactored ecwid.py from a class to functions, general cleanup based on pylint