upload python catch signal