Initializing headers to a dict

Otherwise the assignation a few lines below will fail.