for obj in bpy.data.objects:
    if obj.type not in bad_obj_types:
        if len(list(obj.keys())) > 1:
            print(('Object', obj.name, 'custom properties:'))
for K in list(obj.keys()):
    pass
How do i read out Custom Properties in Blender with Python?