How to debug your Python script