fix pylint error
Fix pylint issues in master.py