Bug 813131 - port automationutils changes to mozcrash, also support python 2.4