This would be fairly easy in Java since there are curly braces that are required for beginning and ending that code block and so I could write a program to look for the curly braces and label each function.
The problem I'm having with Python is finding some sort of marker that tells me when a function ends. I'm guessing one solution would be to figure out some scheme to detect the '\t' for each line. What are some methods for determining the beginning of a function block and it's end?