Update dependencies to latest versions.
Fix print function in Python 2.
Add ability to export to a specific file.