add requirements.
add pprint for pretty print on commandline
add common headear, payload header function