More pylint and code formating changes on api.packages