copied in folding from jpythonfold.vim