Brainfuck compiler in python designed for a spoj problem