import ast
""" """.join([k[0] for k in list(ast.literal_eval(
    "{('players',): 24, ('year',): 28, ('money',): 19, ('ipod',): 36, ('case',): 23, ('mini',): 46}"
    ).keys())])
Extracting only characters from a string in Python