Not to nitpick, but it seems like what you did would have been much more suited for an IPython (Jupyter) notebook directly outputting with matplotlib rather than writing Python code to generate data for R?
http://stanford.edu/~mwaskom/software/seaborn/examples/scatt...