fix some bugs:

get last hour file use datetime module instead of use list

add debug