Typo fix on object parameter and removal of redundant loop in workers.
Improving pep8 compliance and shortening internal imports