changed lots of stuff to make python code compatible with skyline