mac compatibility: pika version, right python shebang, handle dropped messages better