fix issue with pickle in GitHubSession