check None data & fix python3.4 breakage thx to @adonoho