[PATCH 1/3] Clean up some of the get_object usage in custom.py.