changed build and python script according to ci config