Some python reformat and added in bottle code