device, mongo_big_data

api.py: device.get&set is ok
mongo_data.py: fix a bug of closure; better time filter; add comment
py_big_data_generate.py: fix some small bugs