Changing python output to avoid using reserved keywords