Fixing python3 portage
fixing cmp and sort function for python3