Generate random terrain with Python