PEP8 compliance for find_obj