python script for language recognition