Fix python and perl extensions

When using the api the python and perl extensions on the language field had to be `..py` and `..pl` in order to get the language properly identified.