Ensure C code passed to weave is str, not unicode (#301)
Ensure C code passed to weave is str, not unicode (#301)

Weave uses shelve and bsddb to cache compiled object code, with the C code
string itself as the key. bsddb only accepts str and int keys, but in some
cases when PySB model components have unicode names the C code ends up as
unicode after the various string templating operations used to build the
code. The final C code shouldn't contain actual component names after the
complete transformation, so it should always be safe to coerce the code to
str before handing it off to weave.
jmuhlich/pysb,johnbachman/pysb,johnbachman/pysb,LoLab-VU/pysb,LoLab-VU/pysb,pysb/pysb,alubbock/pysb