add ability to limit number of python cores