Update newmain.py

-- added R for message type; used for RaDaR code uploading of .pdf files