refactored python fold text
pull request merged. close #12