Added class locals to handle compilation of classes with local variables with the same name as free variables
Updated test case to use correct Python file name
Index scope by source location to avoid ambiguities with multiple definitions with the same name in the same scope