Fix resolution of python code