minor updates to autotype, removed extra import
write a temp script and execute that instead of stdin...