Changed startPolyglot to return the statistics

Now polyglot can be imported as a module and the language statistics can
be retrieved as a dictionary by calling the startPolyglot method.