Got Flask-Login to take notice of the 'user_loader' function in user/__init__.py.
__getattr__ is not automatically defined on objects, so the attempt to call it was causing errors.