I would recommend when you are going to show us the code, that you display it exactly how you have in on your side instead of figuring out if there are other issues that can't be seen properly. Use markdowns to help out. See this link.
On line 2, put your
len(original)>0: with the
if statement. Also, make sure the indentations are correct.
Let me know if that worked!