This script can help you translate a word or text automatically by simulating user interactive action on Google Translate. It is convenient because Google Translate API is not free any more since 2012.
For example translation_result("I love you", "en", "zh-CH") is translating "I love you" in English into Chinese. The supported languages on https://developers.google.com/translate/v2/using_rest#language-params.
For more information, please visit Tao Lin's homepage.