How To Write A Variable Response In Python