Updated for python3k goodness

Also compiled the regex for more efficient searching!
Merge pull request #1 from thebearbear/patch-1

Updated for python3k goodness