fix parse_line and parse_file to work well as both of instance method and module function.

  * want to call parse_line() with less code (without instanciation, with default config)