flake8
support space arg to estimator
add TestSpace for smoke test