MozInstall is a project mainly written in Python, it's free.
This is a utility package for installing and uninstalling Firefox on various platforms.