Use bytes type when building an array.

This should go part of the way to getting pytools Python 3 ready.