Disableing preview for python