Added pores.py, copied from a previous project.