added a custom block, with python code generation functionality