Photo sharing application using two phase commit in Flash (python)