python script to format http stauts codes