detect parsing method from while list.

to prevent from injection attacking.
use getattr's default value argument.
Merge pull request #7 from tonyseek/protect-injection

Detect parsing method from while list
normalize the decorator usage.
support to match functions with keyword arguments.