Import os before running os.startfile.