Automatic generation of glue layers between pieces of code written in different programming languages