Add stdin and stdout to process_ais.py