Is there free software (preferably in Python) that computes American basket (high-dimensional!) option prices in the Black Scholes model using the Longstaff-Schwartz algorithm (also known as Least Squares Monte Carlo)?
Optimally, I want to be able to control the number of basis functions, the number of Monte Carlo samples and the number of time steps used.