Using Variables In Regex Python Documentation Class