Framework Python script fixed to run in the correct directory