Added --maximum-ratio option
Fix python script run path