Python: refresh messages on startup