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

Why do you avoid the AttributeError and then raise it manually?
How about simply letting it bubble up:
```
atval = getattr(numpy, attr)
```