split http parse and printer
fix python3 bug