fix pylint warnings in rdp module