Generate Python code objects by "assembling" bytecode