Proper syntax for interactive python