Sketchy implementations of harder problems in python