Python Sorting Strings With Photos