Automatically generate a basic 'main' for C, C++, Python and Java depending on file name extension format