def get_picam(c):
    """ Return a dict of the attributes in a PiCamera"""
    d = {}
    if type(c).__name__ == "PiCamera":
        all_settings = ['analog_gain', 'awb_mode', 'awb_gains', 'contrast', 'drc_strength', 'digital_gain',
                        'exposure_mode', 'exposure_speed', 'framerate', 'hflip', 'iso',
                        'meter_mode', 'rotation', 'sharpness',
                        'shutter_speed', 'sensor_mode', 'saturation',
                        'still_stats', 'zoom', 'vflip']
        for s in all_settings:
            d[s] = getattr(c, s)
    return d