The whole function is now removed and reimported.

I think the indentations are still wrong. I normally use tabs, i think your indentations use spaces