Came up with new algorithm for finding code blocks. Separated out tokenize print to new function. Created new function for find_fold_points which can be used to define code blocks.