def next(): '''Advances the current snapshot of the current simulation. Return the new snapshot, or None if the call failed.''' try: snapshot=snap(SimBuffer.get_no_next_snapshot()) return snapshot except BufferException as e: handle(e)