allow headers to be passed to post() in python test