NF: rest support, better python tab,space support