Fixing TypeError: string argument expected, got 'bytes' 

StringIO.write accepts strings, not bytes. LinkedInSelector manipulates with strings too. There is no need for byte representation here.

The error appears when LinkedInApplication.get_profile() is called with selectors=['positions']