proper globals handling (including closures)
add catchall (for i.e. getattr)
minor fixes for clarity; also note __module__ can be None
support for random numbers