Python Integrate-and-fire Resources