How to call an external command from within a Python script?