handle longs as numbers in python 2
always open files in binary mode or with encoding
fix stdout/err capturing when running with nosetest --with-xunit
decoding of tempita templates on python 2
do nont use map for bbox conversion
use StringIO for capture
enable mapproxy-util tests for python 3
add py34 to tox.ini
handle threshold_res higher than first resolution