Borrow b() and u() from six
Use u() to be python 3.1 compatible