tried to fix pylint and some copy() errors