TST: Fix sorting of properties and methods in servertestcase in python3