fix python3 depreciation warnings in ubuntu saucy - issue #187