Threading issue

Hi Nikolay,

There was a bug in your xmlrpc library causing the delegate methods never to be called because the request was running in a loop that wasn't the main loop.

This pull request should fix that issue.

I hope you're merging soon, I'm using this library as a dependency in a project ;)

Cheers,

Frederic