Updating method get_variable for issue #17

Added a check for the method get_variable, because the fixed issue #17 (proxy support) need this. This check is needed because the variables 'proxy_user' and 'proxy_password' are optional.