support getting node and core number in Python (#2333)
support getting node and core number in Python (#2333)

* support getting node and core number on python

* python style

* address comments

yangw1234/BigDL,yangw1234/BigDL,yangw1234/BigDL,intel-analytics/BigDL,intel-analytics/BigDL,yangw1234/BigDL,intel-analytics/BigDL,intel-analytics/BigDL