You check to see if it's available - see example#3 in the link above.
I don't understand what you need. This is a one-way hash. The output is meant to look strange.
FROM THE PHP MANUAL:
CRYPT_BLOWFISH - Blowfish hashing with a salt as follows: "$2a$", a two digit cost parameter, "$", and 22 digits from the alphabet "./0-9A-Za-z". Using characters outside of this range in the salt will cause crypt() to return a zero-length string. The two digit cost parameter is the base-2 logarithm of the iteration count for the underlying Blowfish-based hashing algorithmeter and must be in range 04-31, values outside this range will cause crypt() to fail.
So the Blowfish salt in the example:
07 - the 2 digit cost (04-31)
usesomesillystringfors - the 22 digits
alt$ - excess digits (don't do anything)
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: