Python Post Basic Authentication Header Generator