py: Make globals and locals proper dictionary objects.
Finishes addressing issue #424.
In the end this was a very neat refactor that now makes things a lot
more consistent across the py code base. It allowed some
simplifications in certain places, now that everything is a dict object.
Also converted builtins tables to dictionaries. This will be useful
when we need to turn builtins into a proper module.
diff --git a/py/builtintables.h b/py/builtintables.h
index 9b22b66..caea79f 100644
--- a/py/builtintables.h
+++ b/py/builtintables.h
@@ -1,2 +1,2 @@
-mp_obj_t mp_builtin_tables_lookup_object(qstr q);
-mp_obj_t mp_builtin_tables_lookup_module(qstr q);
+extern const mp_obj_dict_t mp_builtin_object_dict_obj;
+extern const mp_obj_dict_t mp_builtin_module_dict_obj;