Remove unused function
Fix few things from pylint