Runzu Wang provided a Python tutorial demonstrating how to replicate Burgstahler and Dichev on the WRDS server. See attachments for files provided by Runzu including files for merging Compustat and CRSP using the mycstlink macro, and a file for using Jupyter Notebook.