fixed bug with coding for python options