support for older RenPy 6.x

re-implemented some methods if they are missing
removed with, which is not supported by Python 2.3 (oh shi~)