fixed some nagging from pylint concerning syntax