made compute_in_degrees more efficient
added application.py