You are a software developer doing a commercial project for an institution. Taking Python as your development language, give two advantages of using python for that task. Write a simple program that would be incorporated into your application to log text output into a text file.