add more python3 compatibility

class OpenID __init__ use "basestring" python2 built-in function. This don't work in python3, so just add some typical replaces.