update post/python flatten list