Checking if NOT empty for python imports.