Modify apache htpasswd by python