Update utils.py

reduction getattr such that foreign keys are supported