Python script for finding a way through Petersburg's subway stations