Fix complex support nopython.
Fix some missing import