https://www.spoj.com/problems/POLYMUL/ Problem doubt

Im trying to solve this problem https://www.spoj.com/problems/POLYMUL/
using python’s inbuilt library function fft
but its resulting ina a tle here is my code.
https://ideone.com/IJ4hdm
Can anyone help here.
Thanks in advance