Fix for 524 and add automatically discovery of NumPy module level scalars

- automatically discovery of NumPy module level scalars
- added auto_attributes to do the above

It's rather weird to create a new module at every pass here... can't you just use ``sys.modules[module]``?