my python script(may no use for others)