Python algorithm complete, still needs GUI