Remove preallocation in preparation for something better.
Avoid temporary str/bytearray.
Remove temporary bound method.
Fix module refs.