alias str to basestring in python3