fix random_state in XDGMM
fix py3k errors