Fixes Python 3 errors, adds new require function

Now also uses .rab instead of .txt for Rabbit files.