james' code and the start of the mod script for pyfth