BUG: set nobs to integer to solve Travis CI error on python 3.