I have the following in /sdcard/sl4a/scripts/twitter.py
import android
droid = android.Android()
droid.launch('com.twitter.android')
And if I run it in the console or the background, it immediately exits with code 1, and the log file is empty.
If there are other ways to launch applications from some sort of script, I'm open to suggestions. I know of Tasker, but I'd rather write text scripts than use a wizard.