How to sort alpha numeric set in python