Python program for posting to MedTwice