added spec fiel to python code