Python String Pattern Searching In Python Code