The pecpy library provides an implementation of the proximity effect correction (PEC) scheme proposed in [1]. Examples are bundled with the source code in
pecpy/examples
If you use this package in your research, please cite the original publication. If you use Windows, I can recommend [2] for obtaining pre-compiled versions of fftw, shapely, and opencv. Note that the latter two packages are only needed for the gds <-> image mapping.