changes in polyglot.py and languages

# polyglot.py
- Added header info;
- Cleaned code.