Dynamic programming tool for memory-intensive analyses in Python