added write-in and partisan flags to contests