How to access Python variable with a format specifier? Below code is printing all variable names, how can I print variable values instead?