Fix the translator in the case of Python code outside of functions

The following code is now translatable:

a = {'x': '5'}
print a['x']