support on python3

support on python3.4
可以用 `from __future__ import division` 替代