Fix log
Fix POST and PUT request data handling

Python 2.7 and 3.3 friendly