Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
You don't need to import your utils.python_random. The good thing about RENPY is that no matter where the file is located within the main directory, they are connected. So if you want to use your class PythonRandom, you can just create an object for it in any other rpy file and access it directly. You only need to use the import statement if you have python modules that aren't part of your game.
A file in ./utils/will be parsed late though... If you want things defined in those files available in others it might be best to rename utils to _utils
Ren'Py semi interprets files even before doing the inits, so it does expect to find things which are referenced in one file even if they are defined elsewhere (it expects to have already read them)