Putting logic into a base.py to use __init__ as namespace helper