Only import gui if gui option is specifed

Don't want people tests to fail if user doesn't have PyQt installed