fixed scanbrightness in python setData method