Python re-assembler