[~] os.getcwd() deprecated, fixed as recommended