I have little experience with python & Quantopian however I tried to program a portfolio which combines different factors and invest in sectors so that each sector has an equal weight at the end with a different number of stocks. But somehow it seems that the weights do not get through to the execution. Thanks for any help!