fixed code to mkae it compatible with gdspy 0.5. Problem was that get_polygons function now returns a dictionary with (layer,datatype):array_of_poly_points, instead of layer:array_of_poly_points as it used to.