Bias simulation fixes for Python 3.

Must have missed these when previously checking behaviour for Python 3. Also
attempted to add Python 3.4 as a version target for Travis CI.
Merge branch 'issue50' into develop