'Given a dict of entries, map all unspecified types to a specified type.'

def infer_types(self, scope):

    for (name, entry) in scope.entries.items():
        if (entry.type is unspecified_type):
            entry.type = py_object_type
