deploy script to use oauth
error trapping around re.compile()