Cythonized tools.film

Cythonized tools.film, specifically get_density_map and get_idx. Got around 8x
acceleration.