Complete rewrite of PyPeaches, hopefully better this time