Easiest workaround is to replace scatter by plot. This won't offer all functionality of scatter, but for the MWE it is sufficient: linestyle='None', marker='o', markersize=np.sqrt(max_marker_size), ...
Matplotlib is a graph plotting library in python which is used a visualization tool. This library also comes with extensions like numpy and packages like seaborn adn ...