moved around includes to avoid linux python warnings