Tempfile takes a string, not an integer, coding 101