Add loglevel arg to pir.py script